<top-title title="提料申请" icon="am-icon-user"></top-title>
<div class="am-padding-horizontal-sm am-padding-top-lg am-padding-bottom-sm">
  <form class="am-form am-form-horizontal am-text-sm">
    <mh-select title="项目选择：" ng-model="projects" selected="selected"></mh-select>
    <!--图片-->
    <div class="am-form-group">
      <label class="am-u-sm-3 am-form-label mh-padding-none" for="img1">料单附件：</label>

      <div class="am-u-sm-9 mh-padding-none">
        <input type="file" accept="image/*;capture=camera" id="img1"
               class="am-input-sm am-radius am-form-field"
               ngf-select="onFileSelect($files)">
        <!--<input type="file" class="am-input-sm am-radius am-form-field" accept="image/*" capture="camera" name="image"-->
        <!--ngf-select="onFileSelect($files)">-->
      </div>
    </div>
    <horizontal-item config-data="{name:'料单标题：',type:'text'}" ng-model="title"></horizontal-item>
    <horizontal-item config-data="{name:'申请编号：',type:'text'}" ng-model="codenum"></horizontal-item>
    <div class="am-form-group">
      <label class="am-form-label">料单说明：</label>
      <textarea ng-model="description" class="am-margin-top-sm"
                style="background-color: #ebebeb;border: none;min-height: 128px"></textarea>
    </div>
    <button type="submit"
            class="am-btn am-btn-default am-radius am-form-field am-margin-top-lg mh-lightgreen mh-text-white"
            ng-click="submit()">完成
    </button>
  </form>
</div>
